Skip to main content

IP Adapters

You can use adapters to fix hands, fingers, faces or any deformaties. One of the most commonly used application of Adapter is to lock face and generate same face in any environments. Other applications include fixing hands, fingers and adding details to a specific image.

To use adapters, you will need to pass three extra parameters - adapter name, ip adapter image and scale of the adapter

Tip
  • Use only face as input image instead of the full body while using face adapters.
  • Supports all checkpoint models on SD 1.5

{
"model_id": "2e05152a-82c1-4b51-9aae-4475b76fad6a",
"prompt": "cinematic still woman holding mango juice. emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope",
"negative_prompt": "error, cropped, worst quality, low quality, duplicate, bad proportions, incomplete subject",
"num_inference_steps": 20,
"samples": 4,
"guidance_scale": 7.5,
"width": 512,
"height": 512,
"ip_adapter": "[ip-adapter-plus-face_sd15]",
"ip_adapter_image": "https://t4.ftcdn.net/jpg/06/44/30/09/360_F_644300965_7asrChyeknn9fA0GuYrmIUFSBHR5HTpo.jpg",
"ip_adapter_scale": [0.6]
}
ImagePipeline-facelock

JSON Parameters

ParameterPermissible valuesNotes
model_idstrmodel_id can be found in models page. Filter by SD-1.5 or SDXL models
promptstr, 75 tokensCheck our Prompt Guide for tips
negative_promptstr, 75 tokensCheck our Prompt Guide for tips
num_inference_stepsint, [1-100]Noise is removed with each step, resulting in a higher-quality image over time. Ideal value 20-30
strengthfloat, [0-1]Optional denoise strength
samplesint, [1-4]Generates a maximum of 4 samples per API call
guidance_scalefloat, [1-20]Higher guidance scale prioritizes text prompt relevance but sacrifices image quality. Ideal value 7.5-12.5
widthintWidth in pixels. Lower than or equal to 512 for best results
heightintHeight in pixels. Lower than or equal to 512 for best results
ip_adapterstr, array Model id of adapters to be used. You can add multiple by comma separated values. Face control for sd1.5: ip-adapter-plus-face_sd15. Face control for sdxl: ip-adapter-plus-face_sdxl_vit-h
ip_adapter_scalefloat, array[0-1]How much adapters should guide the generations. You can add multiple by comma separated values.
ip_adapter_imagestrInput image to the primary adapter model. Mostly used for face lock
ip_adapter_style_imagesstr, arrayImages to be used by multi IP-adapters for usecases like style transfer or image mixing
server_idstringServer_id for enterprise subscription. Provide any for load-balancing, specific id for routing
webhookstringWebhook to send generated image to

Status

Your response will include a status.

  • If the status = SUCCESS, you will also have download_urls that will have the links to your generated image based on the number of samples you have entered. The maximum number of samples that can be generated is 4.
  • If the status = PENDING, you will receive a id. You can use the status endpoint to fetch your image using the id.
  • If the status = FAILURE, you will receive only an error message.

Endpoint: [GET]

  • https://api.imagepipeline.io/sd/text2image/v1/status/{{id}}
  • https://api.imagepipeline.io/sdxl/text2image/v1/status/{{id}}

Pass the API-Key as the authorization in the header.